package oboe.utils
{
	import flash.utils.Dictionary;
	
	public class Hash extends Dictionary
	{
		private var _length:int;
		public function Hash()
		{
			super(false);
			_length = 0;
		}
		
		public function get(k:Object):Object{ return this[k]; }
		public function set(k:Object, v:Object):Object{ if( !this[k] ) _length++; this[k] = v; return v; }
		public function get length():int{ return _length; }
		public function kill(k:Object):void{ delete this[k]; }
	}
}